<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>首页</title>
  <link rel="stylesheet" href="css/base.css">
  <link rel="stylesheet" href="css/index.css">
  <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1, user-scalable=no">
</head>
<body>
  <div class="header-box">
    <p>小鱼儿共享绘本海洋</p>
  </div>
  <div class="search">
    <div class="search_box">
      <img src="img/index/sousuo(2)@2x.png">
      <input id="searchKeyword" type="text" placeholder="书名\作者">
    </div>
  </div>
  <div class="banner">
    <div class="banner_box">
      <ul>
        <li><img src="img/index/banner@2x.png"></li>
      </ul>
    </div>
  </div>
  <div class="nav">
    <div class="nav_box">
      <div class="nav_box_cont">
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(8)"><img src="img/index/zhishang@2x.png"></a>
          <p>智商</p>
        </div>
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(10)"><img src="img/index/qingshang@2x.png"></a>
          <p>情商</p>
        </div>
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(6)"><img src="img/index/xinshang@2x.png"></a>
          <p>心商</p>
        </div>
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(12)"><img src="img/index/nishang@2x.png"></a>
          <p>逆商</p>
        </div>
      </div>
      <div class="nav_box_cont" style="margin-top:0.36rem;">
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(7)"><img src="img/index/meishang@2x.png"></a>
          <p>美商</p>
        </div>
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(9)"><img src="img/index/caishang@2x.png"></a>
          <p>财商</p>
        </div>
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(13)"><img src="img/index/qinzi@2x.png"></a>
          <p>亲子</p>
        </div>
        <div class="nav_box_item">
          <a href="javascript:;" onclick="toList(14)"><img src="img/index/yuer@2x.png"></a>
          <p>育儿</p>
        </div>
      </div>
    </div>
  </div>
  
  
  <div class="huise"></div>
  <div class="main">
    <div class="box">
      <div class="box_top">
        <img src="img/index/nianling@2x.png" class="tuijian">
        <span>分龄推荐</span>
        <a href="popuborrlist.html?type=fenlin">更多 ></a>
      </div>
      <div class="box_button">
        <a href="javascript:;" id="age0" class="selected">经典必读</a>
        <a href="javascript:;" id="age1">2-4岁</a>
        <a href="javascript:;" id="age2">5-7岁</a>
        <a href="javascript:;" id="age3">8-12岁</a>
      </div>
      <div id="book_fenling_show" class="box_datu">
	     <img alt="数据加载中..." src="images/dataloading.gif">
      
<!--         <div class="box_datu_item"> -->
<!--           <img src="img/index/tuceng 32@2x.png"> -->
<!--           <p>牙虫大搬家</p> -->
<!--           <div class="xingxing"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing6@2x.png"> -->
<!--             <span>4.3</span> -->
<!--           </div> -->
<!--         </div> -->
<!--         <div class="box_datu_item"> -->
<!--           <img src="img/index/tuceng 31@2x.png"> -->
<!--           <p>胆小鬼威利</p> -->
<!--           <div class="xingxing"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing6@2x.png"> -->
<!--             <span>4.3</span> -->
<!--           </div> -->
<!--         </div> -->
      </div>
    </div>
  </div>
  <div class="huise"></div>
  <div class="main">
    <div class="box">
      <div class="box_top">
        <img src="img/index/bangdan@2x.png" class="bangdan">
        <span>人气借阅榜</span>
        <a href="popuborrlist.html?type=renqi">更多 ></a>
      </div>
      <div id="book_renqi_show" class="box_datu">
       <img alt="数据加载中..." src="images/dataloading.gif">
<!--         <div class="box_datu_item"> -->
<!--           <img src="img/index/tuceng 30@2x.png"> -->
<!--           <p>鸭子骑车记</p> -->
<!--           <div class="xingxing"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing6@2x.png"> -->
<!--             <span>4.3</span> -->
<!--           </div> -->
<!--         </div> -->
<!--         <div class="box_datu_item"> -->
<!--           <img src="img/index/tuceng 31@2x.png"> -->
<!--           <p>胆小鬼威利</p> -->
<!--           <div class="xingxing"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing5@2x.png"> -->
<!--             <img src="img/index/xing6@2x.png"> -->
<!--             <span>4.3</span> -->
<!--           </div> -->
<!--         </div> -->
      </div>
    </div>
  </div>
  <div class="huise"></div>
  
  <div class="main">
    <div class="box">
      <div class="box_top">
        <img src="img/index/xinpin@2x.png" class="xinpin">
        <span>新上绘本</span>
        <a href="popuborrlist.html?type=zuixin">更多 ></a>
      </div>
      <div id="book_zuixin_show" class="box_datu">
       <img alt="数据加载中..." src="images/dataloading.gif">
      </div>
    </div>
  </div>
  <div class="huise"></div>
  
  <div class="main">
    <div class="box" style="margin-bottom:1.8rem;">
      <div class="box_top">
        <img src="img/index/anli@2x.png" class="anli">
        <span>专家推荐</span>
        <a href="popuborrlist.html?type=jindian">更多 ></a>
      </div>
      <div id="book_jingdian_show" class="box_datu">
       <img alt="数据加载中..." src="images/dataloading.gif">
      </div>

    </div>
  </div>
  
  
  <div class="footer">
    <div class="footer_box">
      <a class="hui_ben footer_box_item select" href="index.html">
        <img src="img/index/huiben@2x.png">
        <span>绘本</span>
      </a>
<!--       <a class="rong_yao_bang footer_box_item" href="glory.html"> -->
      <a class="rong_yao_bang footer_box_item" href="deving.html">
        <img src="img/index/rongyaobang@2x.png">
        <span>荣耀榜</span>
      </a>
      <a class="zhu_ye footer_box_item" href="scanRead.html">
        <img src="img/index/zhuye@2x.png">
        <span>扫一扫</span>
      </a>
      <a class="gui_huan footer_box_item" href="back.html">
        <img src="img/index/guihuan@2x.png">
        <span>归还</span>
      </a>
      <a class="my footer_box_item" href="my.html">
        <img src="img/index/wo@2x.png" >
        <span>我享</span>
      </a>
    </div>
  </div>
</body>

<!-- 图书展示模板 -->
<script id="book_show_tmpl" type="text/x-jsrender">
    <div class="box_datu_item">
          <div class="divImg"><img src="{{:bookImage1}}" onclick="toDatail({{:id}})"></div>
          <p>{{:bookName}}</p>
          <div class="xingxing">
			{{if recommendStar<1}}
            <img src="img/index/xing6@2x.png">
			{{/if}}
			{{if recommendStar>0 && recommendStar<2}}
            <img src="img/index/xing5@2x.png">
			{{/if}}
			{{if recommendStar>=2 && recommendStar<3}}
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
			{{/if}}
			{{if recommendStar>=3 && recommendStar<4}}
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
			{{/if}}
			{{if recommendStar>=4 && recommendStar<5}}
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
			{{/if}}
			{{if recommendStar>=5}}
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
            <img src="img/index/xing5@2x.png">
			{{/if}}

           <!-- <span>{{:recommendStar}}</span>-->
          </div>
        </div>

</script>

<script src="js/jquery.js"></script><script src="js/jquery.cookie.js"></script>
<script src="js/base.js?v=base.js?v=20180102"></script>
<script src="js/jsrender.js"></script>
<script src="myjs/index.js"></script>

<script type="text/javascript">

$("#searchKeyword").bind("input focus", function() { 
// 	var searchKeyword = $(this).val();
// 	var urlSearchKeyword = encodeURI(encodeURI(searchKeyword));
	toListgo(0, "");
// 	$("#searchKeyword").val(searchKeyword);
});
// $("#searchKeyword").change(function(){
// 	toList(0);
// });


function toDatail(id){
// 	$(this).val();
	window.location.href= "bookDetails.html?id="+id;
}

function toList(types){
	var searchKeyword = encodeURI(encodeURI($("#searchKeyword").val()));
	toListgo(types, searchKeyword);
}

function toListgo(types, val){
	window.location.href= "indexList.html?types="+types+"&searchKeyword="+val;
}

</script>
</html>